package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.business.domain.ExpAccount;
import cn.wolfcode.p2p.business.domain.ExpAccountGrantRecord;

import java.math.BigDecimal;
import java.util.List;

public interface IExpAccountGrantRecordService {
    /**
     * 保存发放体验金记录
     */
    void saveExperienceRecord(ExpAccount expAccount, BigDecimal amount, String note, Integer expType, IExpAccountService.LastTime lastTime);

    /**
     * 查询所有未被回收的体验金发放记录
     * @param state
     * @return
     */
    List<ExpAccountGrantRecord> listGrantRecordByState(int state);

    /**
     * 更新体验金记录
     * @param expAccountGrantRecord
     */
    void update(ExpAccountGrantRecord expAccountGrantRecord);
}
